package com.flyme.module.base.provider.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.flyme.core.base.supper.entity.EntityMap;
import com.flyme.core.base.supper.mapper.SuperMapper;
import com.flyme.module.base.client.entity.SysFeedback;
import com.flyme.module.base.client.entity.SysWorkCourse;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zyf
 */
@Repository
public interface SysFeedbackMapper extends SuperMapper<SysFeedback> {

   /* @Select("SELECT * FROM (SELECT f.*, u.userName FROM sys_feedback f LEFT JOIN sys_user u ON f.userId = u.id " +
        "WHERE f.type = '1' ORDER BY createTime DESC) fd GROUP BY fd.userId ORDER BY fd.STATUS ASC,fd.createTime DESC")
    List<EntityMap> getAll();*/

    /**
     * 查询用户
     */
    List<EntityMap> getAll(IPage page);
}
